import { getBannerAPI } from '@/apis/home';
import { ref, onMounted } from 'vue';

export function useBanner() {
    const BannerData = ref([])
    const getBanner = () => {
        // let res = getBannerAPI({ distributionSite: '2' })
        // BannerData.value = (await res).data.result
        BannerData.value = [
            "http://121.40.250.141:40027/i/2025/05/15/6825ef1563297.jpg",
            "http://121.40.250.141:40027/i/2025/05/15/6825ef01753f7.jpg",
        ];
    }

    onMounted(() => {
        getBanner()
    })

    return {
        BannerData
    }
}

